import React, { Component } from 'react'
import { NavLink } from 'react-router-dom'
import './routes.less'
export default class RouterLink extends Component {
	render() {
		let { routes, selfClassName } = this.props
		return (
			<div className="routerLinkbox">
				{
					routes.map((item, index) => {
						if (!item.title) return
						return <NavLink key={index} activeClassName={selfClassName} to={item.path}>{item.title}</NavLink>
					})
				}
			</div>
		)
	}
}
